/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_parametroCriteria extends AbstractORMCriteria {
	public final IntegerExpression pa_id_parametro;
	public final StringExpression pa_tipo_parametro;
	public final IntegerExpression pa_valorInteger;
	public final DateExpression pa_valorDate;
	public final StringExpression pa_valorString;
	public final FloatExpression pa_valorFloat;
	
	public Tbv_parametroCriteria(Criteria criteria) {
		super(criteria);
		pa_id_parametro = new IntegerExpression("pa_id_parametro", this);
		pa_tipo_parametro = new StringExpression("pa_tipo_parametro", this);
		pa_valorInteger = new IntegerExpression("pa_valorInteger", this);
		pa_valorDate = new DateExpression("pa_valorDate", this);
		pa_valorString = new StringExpression("pa_valorString", this);
		pa_valorFloat = new FloatExpression("pa_valorFloat", this);
	}
	
	public Tbv_parametroCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_parametro.class));
	}
	
	public Tbv_parametroCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_productoCriteria createTbv_productoCriteria() {
		return new Tbv_productoCriteria(createCriteria("ORM_Tbv_producto"));
	}
	
	public Tbv_parametro uniqueTbv_parametro() {
		return (Tbv_parametro) super.uniqueResult();
	}
	
	public Tbv_parametro[] listTbv_parametro() {
		java.util.List list = super.list();
		return (Tbv_parametro[]) list.toArray(new Tbv_parametro[list.size()]);
	}
}

